package com.museum.entity.DO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ruiwen
 * @since 2021-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Clue对象", description="")
public class Clue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID(线索号)")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "线索来源")
    private String sourceCome;

    @ApiModelProperty(value = "年代ID")
    private Integer yearId;

    @ApiModelProperty(value = "等级ID")
    private Integer gradeId;

    @ApiModelProperty(value = "分类ID")
    private Integer sortId;

    @ApiModelProperty(value = "联系电话")
    private String relativePhone;

    @ApiModelProperty(value = "征集人")
    private String userName;

    @ApiModelProperty(value = "发现日期")
    private String findTime;

    @ApiModelProperty(value = "鉴选描述")
    private String identifyDesc;

    @ApiModelProperty(value = "线索描述")
    private String clueDesc;

    @ApiModelProperty(value = "线索名称")
    private String clueName;

    @ApiModelProperty(value = "报价(元)")
    private BigDecimal price;

    @ApiModelProperty(value = "联系人")
    private String relativeName;

    @ApiModelProperty(value = "身份证号")
    private String userIdCard;

    @ApiModelProperty(value = "征集方式")
    private String way;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private String createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private String updateTime;
    @TableField(exist = false)
   private String yearName;
    @TableField(exist = false)
   private String sortName;
    @TableField(exist = false)
   private String gradeName;
    @TableField(exist = false)
    private Integer status;
}
